﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Piser.Common
{
    /// <summary>
    /// 可执行组件基类
    /// </summary>
    public abstract class Excutable : Piser.Core.IExecutable
    {
        /// <summary>
        /// 执行完成后的动作
        /// </summary>
        public event EventHandler OnExcuted;
        /// <summary>
        /// 开始执行时的动作
        /// </summary>
        public event EventHandler OnExcuting;
        /// <summary>
        /// 开始执行
        /// </summary>
        /// <param name="Args">执行参数</param>
        /// <returns>是否执行成功</returns>
        public abstract bool? Excute(string Args);
    }
}
